import {BrowserRouter, Route, Routes} from "react-router-dom";
import TeacherCourseContent from "@/pages/TeacherCourseContent";
import TeacherCourseTeching from "@/pages/TeacherCourseContent/CourseTeching";
import TeacherStudentAnalysis from "@/pages/TeacherCourseContent/StudentAnalysis";
import TeacherScoreManagement from "@/pages/TeacherCourseContent/ScoreManagement";
import TeacherCourseAchievement from "@/pages/TeacherCourseContent/CourseAchievement";
import TeacherCourseSetting from "@/pages/TeacherCourseSetting";
import Login from "@/pages/Login";
import Register from "@/pages/Register";
import TeacherMyClassRoom from "@/pages/TeacherMyClassRoom";
import StudentMyClassRoom from "@/pages/StudentMyClassRoom";
import StudentHomeworkDetail from "@/pages/StudentHomeworkDetail";
import StudentCourseContent from "@/pages/StudentCourseContent";
import CourseLearning from "@/pages/StudentCourseContent/CourseTeching";
import StudentAnalysis from "@/pages/StudentCourseContent/StudentAnalysis";
import StudentCourseManagement from "@/pages/StudentCourseContent/ScoreManagement";
import CourseIntroduction from "@/pages/StudentCourseContent/CourseIntroduction";
import TeacherHomeworkDetail from "@/pages/TeacherHomeworkDetail";
import TopicDetail from "@/pages/TopicDetail";

const AppRouter = () => {
    return (
        <BrowserRouter>
            <Routes>
                <Route path='/' element={<Login/>}/>
                <Route path='/register' element={<Register/>}/>
                <Route path='/studentCourseContent/:courseId' element={<StudentCourseContent/>}>
                    <Route path='' element={<CourseLearning/>}/>
                    <Route path='studentAnalysis' element={<StudentAnalysis/>}/>
                    <Route path='courseManagement' element={<StudentCourseManagement/>}/>
                    <Route path='courseIntroduction' element={<CourseIntroduction/>}/>
                </Route>
                <Route path='/studentMyClassRoom' element={<StudentMyClassRoom/>}/>
                <Route path='/studentHomeworkDetail/:courseId/:workId' element={<StudentHomeworkDetail/>}/>
                <Route path='/teacherCourseContent/:courseId' element={<TeacherCourseContent/>}>
                    <Route path='' element={<TeacherCourseTeching/>}/>
                    <Route path='studentAnalysis' element={<TeacherStudentAnalysis/>}/>
                    <Route path='scoreManagement' element={<TeacherScoreManagement/>}/>
                    <Route path='courseAchievement' element={<TeacherCourseAchievement/>}/>
                </Route>
                <Route path='/teacherMyClassRoom' element={<TeacherMyClassRoom/>}/>
                <Route path='/teacherCourseSetting' element={<TeacherCourseSetting/>}/>
                <Route path='/teacherHomeworkDetail/:courseId/:workId' element={<TeacherHomeworkDetail/>}/>
                <Route path='/topicDetail/:topicId/:identity/:courseId' element={<TopicDetail/>}/>
            </Routes>
        </BrowserRouter>
    )
}
export default AppRouter;